#include <iostream>

using namespace std;

int main()
{
    cout << "string test:" << endl;
    cout <<"sizeof(string): " << sizeof(string) << endl <<endl;
	int number = 1;
    int * pint = new int(10);
	string s1 = "abcdefghijklmno";//15个字节
	string s2 = "abcdefghijklmnop";//16个字节
	string s3 = "abcdefghijklmnopqrstuvwxyz";//26个字节

	printf("栈空间地址值 &number:%p\n", &number);
    printf("堆空间地址值 pint:   %p\n", pint);
	printf("&s1:%p\n", &s1);
	printf("&s2:%p\n", &s2);
	printf("&s3:%p\n\n", &s3);
    cout << "s1's content size:" << s1.size() << endl;
    cout << "s2's content size:" << s2.size() << endl;
    cout << "s3's content size:" << s3.size() << endl;
	printf("s1.c_str(): %p\n", s1.c_str());
	printf("s2.c_str(): %p\n", s2.c_str());
	printf("s3.c_str(): %p\n", s3.c_str());
	return 0;
}
